<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: inc.has_product_attributes.php 468 2014-01-30 15:47:08Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 468 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2014-01-30 15:47:08 +0000 (Thu, 30 Jan 2014) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

function has_product_attributes($products_id) {
	global $db;

	$attributes = $db->db_query("SELECT
										count(*) as count
									FROM
										".TABLE_PRODUCTS_ATTRIBUTES."
									WHERE
										products_id = '".(int)$products_id."'");

	if($attributes->_numOfRows > 0)
		return $attributes->fields['count'] > 0;
	else
		return false;
}
?>